package com.woniuxy.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.woniuxy.entity.LoanApply;

import com.woniuxy.service.ApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @description: 申请贷款的controller
 * @author quanquan
 * @date 2022/9/20 11:13
 * @version 1.0
 */
@RestController
public class ApplyController extends BaseController {

    @Autowired(required = false)
    ApplyService applyService;


    @PostMapping("/addApply")
    public AjaxResult addApply(@RequestBody LoanApply loanApply){
        return applyService.addApply(loanApply);
    }


}
